<layout name="../../../Resource/Common/master" />

<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i>主页</a></li>
    <li><a href="#">模块设置</a></li>
    <li><a href="#">模块列表</a></li>
</ul>
<div class="m-b-md">
    <h3 class="m-b-none">模块列表</h3>
</div>
<div class="row">
    <div class="col-sm-9 col-sm-offset-1">
        <section class="panel panel-default">
            <header class="panel-heading font-bold">公众号设置</header>
            <div class="panel-body">
                <table class="table table-hover">
                	<thead>
                		<tr>
                			<th>模块名称</th>
                			<th>模块标识</th>
                			<th>操作</th>
                		</tr>
                	</thead>
                	<tbody>
                    <volist name="modules" id="vo">
                		<tr>
                			<td>{$vo.name}</td>
                			<td>{$vo.title}</td>
                			<td>
                                <div class="btn-group">
                                    <if condition="in_array($vo['title'],$has)">
                                        <a href="{:U('module/manger/uninstall',['title'=>$vo['title']])}" class="btn btn-default btn-danger btn-xs">卸载</a>
                                        <else />
                                        <a href="{:U('module/manger/install',['title'=>$vo['title']])}" class="btn btn-default btn-success btn-xs">安装</a>
                                    </if>
                                </div>
                            </td>
                		</tr>
                    </volist>
                	</tbody>
                </table>
            </div>
        </section>
    </div>
</div>
<script>
   function controller($scope, $, _){
    }
</script>

